def FileDIR="E:\\WebDev\\Oracle\\";
def FileName="toad系列组件注册机.exe";
def file = new File(FileDIR,FileName)
file.eachLine {line-> ; }


def map=[1:2,1:3,5:9];
map." a identifier with a space and double quote"="ALLOWED";

map.'This is what i thought which is right'="ALLOWED";

map./Shit/="Alllow ";

map.test="111"
map.$jfjasd$="fsdaf";
//println map;

def name="Jacky";

def greeting="Hey ${name}";
//println greeting;


def person=[name:'Jacky'];



//无参数闭包
def sParameterLessClosure = "1 + 2 == ${-> 3}"
assert sParameterLessClosure == '1 + 2 == 3'
//一个参数闭包
def sOneParamClosure = "1 + 2 == ${ w -> w << 3}"
assert sOneParamClosure == '1 + 2 == 3'
//w是一个writer
println "${w->w<<5}";

def number = 1
def eagerGString = "value == ${number}"
def lazyGString = "value == ${ -> number }"

assert eagerGString == "value == 1"
assert lazyGString ==  "value == 1"

number = 2
assert eagerGString == "value == 1"
assert lazyGString ==  "value == 2"


assert "one: ${1}".hashCode() != "one: 1".hashCode()

//多重双引号字符串也支持站位插值操作
def template="""
You're really a good man
""";
println template



def fooPattern=/.*foo.*/;
assert fooPattern == '.*foo.*'

def escapeSplash=/The \/Character/

int i=0b11110000;


//反向index的支持
def lister=['1','2','3','4','5']

//段的 获取
println lister[2..4];


//多维数组
def multi=[[0,1],[2,3],[4,5],[7,8]];
println multi[2][1];



def ij=9;
ij**=4;
println ij

